package com.ft.oa.service.project;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ft.oa.domain.dto.ApiResult;
import com.ft.oa.domain.project.ExecProjectTask;

/**
 * 项目立项任务
 * @author hefeng
 * @ClassName ExecProjectTaskService
 * @date 2022/1/6 16:48
 */
public interface ExecProjectTaskService extends IService<ExecProjectTask> {

    /**
     * param execProjectTask
     * return ApiResult
     * describe 项目任务新建
     *
     * @author 禾丰
     * @date 2022/1/6
     */
    ApiResult add(ExecProjectTask execProjectTask);

    /**
     * param execProjectTask
     * return ApiResult
     * describe 项目任务编辑
     *
     * @author 禾丰
     * @date 2022/1/6
     */
    ApiResult update(ExecProjectTask execProjectTask);


    /**
     * param id
     * return ExecSubProject
     * describe 项目任务详情
     * @author 禾丰
     * @date 2022/1/6 11:31
     */
    ExecProjectTask detail(Long id);

    /**
     * param name
     * param execProjectId
     * param execProjectName
     * param page
     * param size
     * return ApiResult
     * describe 项目任务列表
     * @author 禾丰
     * @date 2022/1/7 10:27
     */
    Page<ExecProjectTask> list(String name, Long execProjectId, String execProjectName, int page, int size);

    /**
     * param id
     * return ApiResult
     * describe 删除项目任务
     * @author 禾丰
     * @date 2022/1/7 10:46
     */
    ApiResult del(Long id);
}
